<template>
  <a-select
    show-search
    placeholder="请选择型号"
    option-filter-prop="children"
    style="width: 200px"	
		@change="handleChange"	
  >
		<a-select-option  v-for="item in options" :key="item" >{{item}}</a-select-option>    
  </a-select>
</template>
<script>
import { getAction } from '@/api/manage'
export default {		
		name: 'ceshi',
	  data() {
			return {											
				options: [],	
				url: '/fly/axhkYwModel/modellist',					
			}		
	  },
  methods: {
    handleChange(item) {
			this.$emit('change', item)
			// alert(item);
    },  
    
	// reset() {
    //   //打开新增表单时，进行重置
    //   this.options = ''
    // },
		getlist(){
			getAction(this.url).then((res) => {			
					this.options = res.result;	
					// alert(JSON.stringify(this.options));														
			})								
		},
	},
	
	created(){
		this.getlist();
	},
};
</script>